package sender;

use submitter;
use ExploitFarm_SQL;
use db_config;

sub new
{
    my ($self,$ip,$port)=@_;
    $db=new ExploitFarm_SQL($db_host,$db_port,$db_name,$db_login,$db_pass);
    my $obj={
	ip	=> $ip,
	port	=> $port,
	db	=> $db,
	};

    bless $obj;
}

sub get_flags
{
    my $self=shift;
    my $db=$self->{db};
    $db->connect();

    my $flags=$db->get_flags();
    return $flags;
}



1;